package com.luying.service;

import com.luying.pojo.*;
import com.luying.pojo.Class;

import java.util.Map;

public interface BasicInfoService {
    PageResult queryClass(PageQuery pageQuery);

    int addClass(Class aClass) throws Exception;

    int deleteClass(Integer id) throws Exception;

    int updateClass(Class aclass);

    int addUser(User user, Integer type);

    int addSubject(Subject subject);

    PageResult querySubject(PageQuery pageQuery);

    int deleteSubject(Integer id) throws Exception;

    int updateSubject(Subject subject);

    void updateClassAndSubject(ClassAndSubjectVo classAndSubject);

    Map<String,Object> classAndSubjectList();

    PageResult classAndSubjectQuery(PageQuery query);

    int addMoral(Moral moral);

    PageResult queryMoral(PageQuery pageQuery);

    int deleteMoral(Integer id);

    int updateMoral(Moral moral);
}
